package com.wtoip.config;

import javax.jms.ConnectionFactory;

import org.apache.activemq.ActiveMQConnectionFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ActiveMQConfig {
	
	@Bean
	@ConfigurationProperties(prefix="spring.activemq")
	public ConnectionFactory getConnectionFactory() {
		ConnectionFactory connectionFactory = new ActiveMQConnectionFactory();
		return connectionFactory;
	}
	
	
}
